package com.ihr360.cnb.module.insurance.service.feign.fallback;

import com.ihr360.cnb.module.insurance.service.feign.InsuranceMemberPlanService;
import com.ihr360.commons.exception.Ihr360Exception;
import com.ihr360.commons.vo.PageData;
import com.ihr360.excel.entity.ExportParams;
import com.ihr360.insurance.entity.request.MemberPlanReq;
import com.ihr360.insurance.entity.request.StaffIdRequest;
import com.ihr360.insurance.entity.response.LedgerResponse;
import com.ihr360.insurance.entity.vo.MemberPlanVo;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author Stone.Shi
 * @description
 * @date 2018-05-24 17:15:02.
 */
@Component
public class InsuranceMemberPlanServiceFallback implements InsuranceMemberPlanService {

    private static final String MESSAGE = "内部服务调用失败：调用福利云服务失败";

    @Override
    public ExportParams<List<Object>> getExportExcelDataIncrease(String companyId, String userId, MemberPlanReq req) {
        throw new Ihr360Exception("", MESSAGE);
    }

    @Override
    public PageData<MemberPlanVo> getIncreaseMemberList(String companyId, String userId, MemberPlanReq req) {
        throw new Ihr360Exception("", MESSAGE);
    }

    @Override
    public void saveIncreaseMembers(Long ledgerSummaryId, StaffIdRequest staffIdRequest) {
        throw new Ihr360Exception("", MESSAGE);
    }

    @Override
    public LedgerResponse addIncreaseMember(String companyId, String userId, Integer year, Integer month, MemberPlanVo vo) {
        throw new Ihr360Exception("", MESSAGE);
    }

    @Override
    public void removeIncreaseMember(String companyId, String userId, Integer year, Integer month, MemberPlanVo vo) {
        throw new Ihr360Exception("", MESSAGE);
    }

    @Override
    public ExportParams<List<Object>> getExportExcelDataDecrease(String companyId, String userId, MemberPlanReq req) {
        throw new Ihr360Exception("", MESSAGE);
    }

    @Override
    public PageData<MemberPlanVo> getDecreaseMemberList(String companyId, String userId, MemberPlanReq req) {
        throw new Ihr360Exception("", MESSAGE);
    }

    @Override
    public void saveDecreaseMembers(Long ledgerSummaryId, StaffIdRequest staffIdRequest) {
        throw new Ihr360Exception("", MESSAGE);
    }

    @Override
    public LedgerResponse addDecreaseMember(String companyId, String userId, Integer year, Integer month, MemberPlanVo vo) {
        throw new Ihr360Exception("", MESSAGE);
    }

    @Override
    public void removeDecreaseMember(String companyId, String userId, Integer year, Integer month, MemberPlanVo vo) {
        throw new Ihr360Exception("", MESSAGE);
    }
}
